package com.itheima.wechat;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class TestController {
    @Reference
    TestService testService;
    @RequestMapping("/hello")
    public String hello(){
        return testService.hello();
    }
}
